package com.hl.util;

import java.net.Socket;
import java.util.Date;

/**
 * 	wifi模块和安卓编号实体类
 * @author Administrator
 *
 */
public class CodeAttribute {
	
	private Integer id;
	
	private String instructionCode;  //接收到的指令码  如:[2222:w-1:ok]
	
	private String clientTypeNumber; //客户端编号  0000
	 
	private String clientOnlyId;  //客户端唯一id  w-1
	
	private String responseCode;  //wifi模块回应码    2222 3333
	
	private String sendData; //要发送的数据
	
	private String sendOnlyId; //发送给客户端那个机器 w-1 a-1
	
	private boolean success ;  //是否成功标识     如:ok
	
	private boolean connectionStatus = true; //客户端连接状态

	private Socket socket;  //socket流
	
	private String heartbeatCode; //心跳码
	
	private Date data;  //时间
	
	private Integer InstructionLength; //指令长度
	
	private int socketHash; //socket唯一标识
	
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 指令长度
	 * @return
	 */
	public Integer getInstructionLength() {
		return InstructionLength;
	}
	
	/**
	 * 指令长度
	 * @param instructionLength
	 */
	public void setInstructionLength(Integer instructionLength) {
		InstructionLength = instructionLength;
	}

	public boolean isConnectionStatus() {
		return connectionStatus;
	}

	public void setConnectionStatus(boolean connectionStatus) {
		this.connectionStatus = connectionStatus;
	}

	public String getInstructionCode() {
		return instructionCode;
	}

	public void setInstructionCode(String instructionCode) {
		this.instructionCode = instructionCode;
	}

	public String getClientTypeNumber() {
		return clientTypeNumber;
	}

	public void setClientTypeNumber(String clientTypeNumber) {
		this.clientTypeNumber = clientTypeNumber;
	}
	/**
	 * 客户端唯一id 
	 * @return
	 */
	public String getClientOnlyId() {
		return clientOnlyId;
	}
	
	/**
	 * 客户端唯一id 
	 * @param clientOnlyId
	 */
	public void setClientOnlyId(String clientOnlyId) {
		this.clientOnlyId = clientOnlyId;
	}

	public String getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}

	public String getSendData() {
		return sendData;
	}

	public void setSendData(String sendData) {
		this.sendData = sendData;
	}
	/**
	 * 发送给客户端那个机器
	 * @return
	 */
	public String getSendOnlyId() {
		return sendOnlyId;
	}
	/**
	 * 发送给客户端那个机器
	 * @param sendOnlyId
	 */
	public void setSendOnlyId(String sendOnlyId) {
		this.sendOnlyId = sendOnlyId;
	}

	public boolean getSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Socket getSocket() {
		return socket;
	}

	public void setSocket(Socket socket) {
		this.socket = socket;
	}

	public String getHeartbeatCode() {
		return heartbeatCode;
	}

	public void setHeartbeatCode(String heartbeatCode) {
		this.heartbeatCode = heartbeatCode;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public int getSocketHash() {
		return socketHash;
	}

	public void setSocketHash(int socketHash) {
		this.socketHash = socketHash;
	}
	
		   
		
}
